import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '@/pages/main'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '主页',
      component: MainPage,
      children: [
        {
          path: '/',
          component: () => import('@/pages/home/welcome')
        },
        {
          path: '/pages/home/welcome',
          component: () => import('@/pages/home/welcome')
        },
        {
          path: '/pages/dpsApp/flowEditor/flowEditor',
          component: () => import('@/pages/dpsApp/flowEditor/flowEditor')
        }
      ]
    },
    {
      path: '/login',
      component: () => import('@/pages/login/login'),
    },
    {
      path: '/MainEditor',
      component: () => import('@/components/frmsApp/MainEditor/MainEditor.vue')
    },
    {
      path: '/Test',
      component: () => import('@/components/frmsApp/MainEditor/Test.vue')
    }
  ]
})
